import React from "react";

// 导入路由组件
import { BrowserRouter as Router, Route, /*Link */ } from 'react-router-dom'

import './App.css'
import Login from './pages/Login'
import Layout from './pages/Layout'


class App extends React.Component {
    render () {
        return (
            <Router>
                <div className='App'>
                    {/* 测试路由切换 */}
                    {/* <Link to='/login'>登录页</Link>
                    <Link to='/home'>后台首页</Link> */}

                    {/* 配置路由 */}
                    <Route path='/home' component={Layout}></Route>
                    <Route path='/login' component={Login}></Route>
                </div>
            </Router>
        )
    }
}

export default App
